{extend name="public/base" /}
{block name="css"}
{load href="https://ujia-res.oss-cn-shenzhen.aliyuncs.com/common/third-party/swiper/5.0.3/dist/swiper.min.css" /}
<style>
  .maxWidth {
    max-width: 1200px;
    margin: 0 auto;
  }
  .swiper-container {
    width: 100%;
    height: 100%;
  }
  .swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .swiper-container .swiper-button-prev::after {
    content: '';
  }
  .swiper-container .swiper-button-next::after {
    content: '';
  }
  .swiper-container .swiper-button-prev{
    background-image: url('https://ujia-img.oss-cn-shenzhen.aliyuncs.com/beauthome/esthetics/pc/left.png') ;
    left: 15px;
    right: auto;
    width: 30px;
    height: 30px;
    background-size: cover;
  }
  .swiper-container .swiper-button-next{
    background: url('https://ujia-img.oss-cn-shenzhen.aliyuncs.com/beauthome/esthetics/pc/right.png');
    right: 15px;
    width: 30px;
    height: 30px;
    left: auto;
    background-size:cover;
  }

  .swiper-container1 {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
  }

  .swiper-pagination1 {
    position: absolute;
    z-index: 100;
    left: 10px !important;
    bottom: 0;
  }

  .swiper-container1 .swiper-pagination1 .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 0;
    border: #93412C;
  }
  .swiper-container1 .swiper-pagination1 .swiper-pagination-bullet-active {
    background: #93412C;
  }
  .swiper-container1 .swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0px 5px;
  }

  .appointment {
    margin-left: 15px;
    font-size: 14px;
    background: #A83641;
    border: 0;
    padding: 5px 20px;
    color: #ffffff;
  }
</style>
{/block}
{block name="main"}
<section class="container-fluid main-container">
  <div style="position: relative">
    <img  class="img-fluid page-banner" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/banner.png">
    <div style="position: absolute; top: 71%;left: 19.8%;">
      <button onclick="doConsult()" style="height: 40px;padding: 5px 20px;border: none;background: #D19F83;color: #ffffff;border-radius:4px;">在线咨询 ></button>
      <button onclick="showAppointmentLayer()" style="margin-left: 50px;height: 40px;padding: 5px 20px;border: none;background: #B94047;color: #ffffff;border-radius:4px;">立即报名 ></button>
    </div>
  </div>

  <div class="d-flex flex-column" style="padding-bottom: 60px;align-items: center">
    <img class="img-fluid maxWidth mx-auto" style="margin: 60px 0;max-width: 682px" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/t1.png">
    <div class="maxWidth" style="margin: 0 auto">
      <div class="row">
        <div class="swiper-container">
          <div class="swiper-wrapper">
            <div class="swiper-slide">
              <img class="img-fluid mx-auto" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/wt1.png">
            </div>
            <div class="swiper-slide">
              <img class="img-fluid mx-auto" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/wt2.png">
            </div>
            <div class="swiper-slide">
              <img class="img-fluid mx-auto" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/wt3.png">
            </div>
            <div class="swiper-slide">
              <img class="img-fluid mx-auto" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/wt4.png">
            </div>
            <div class="swiper-slide">
              <img class="img-fluid mx-auto" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/wt5.png">
            </div>
          </div>
        </div>
      </div>
    </div>
    <button onclick="showAppointmentLayer('预约精装房验房服务')" style="border: none;margin-top: 40px;width: 210px;height: 50px;background: #93412C;font-size: 18px;color: #ffffff">预约精装房验房服务 ></button>
  </div>

  <div class="d-flex flex-column" style="padding-bottom: 60px;background-image: url('https://ujia-img.oss-cn-shenzhen.aliyuncs.com/beauthome/reform/pc/gzbg.png');background-size: cover;align-items: center">
    <img class="img-fluid maxWidth mx-auto" style="margin: 60px 0;max-width: 568px" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/t2.png">
    <div class="maxWidth" style="margin: 0 auto">
      <div class="row">
        <div class="swiper-container1">
          <div class="swiper-wrapper">
            <div class="swiper-slide">
              <img class="img-fluid mx-auto" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gz1.png">
            </div>
            <div class="swiper-slide">
              <img class="img-fluid mx-auto" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gz2.png">
            </div>
            <div class="swiper-slide">
              <img class="img-fluid mx-auto" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gz3.png">
            </div>
            <div class="swiper-slide">
              <img class="img-fluid mx-auto" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gz4.png">
            </div>
            <div class="swiper-slide">
              <img class="img-fluid mx-auto" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gz5.png">
            </div>
            <div class="swiper-slide">
              <img class="img-fluid mx-auto" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gz6.png">
            </div>
          </div>
          <div class="swiper-pagination1"></div>
        </div>
      </div>
    </div>
    <button onclick="showAppointmentLayer('预约精装改造服务')" style="border: none;margin-top: 40px;width: 210px;height: 50px;background: #93412C;font-size: 18px;color: #ffffff">预约精装改造服务 ></button>
  </div>


  <div class="d-flex flex-column" style="padding-bottom: 60px;align-items: center">
    <img class="img-fluid maxWidth mx-auto" style="margin: 60px 0;max-width: 514px" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/t3.png">
    <div class="maxWidth" style="margin: 0 auto;display: flex">
      <img src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gs1.png">
      <img style="margin: 0 20px" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gs2.png">
      <img style="margin-right: 20px" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gs3.png">
      <img src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gs4.png">
    </div>
    <button onclick="showAppointmentLayer('预约精装改造服务')" style="border: none;margin-top: 40px;width: 210px;height: 50px;background: #93412C;font-size: 18px;color: #ffffff">预约精装改造服务 ></button>
    <img class="img-fluid maxWidth mx-auto" style="margin: 60px 0 0;" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/pp.png">
  </div>

  <div class="d-flex flex-column" style="padding-bottom: 60px;background-image: url('https://res.bestyoujia.com/web/ZMYJ/reform/pc/gy_bg.png');background-size: cover;align-items: center">
    <div style="display: flex; justify-content: space-between">
      <div style="margin-right: 15px">
        <img class="img-fluid maxWidth mx-auto" style="margin: 60px 10px 10px 10px;max-width: 1200px" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gy1.png">
      </div>
      <div style="margin-left: 15px">
        <img class="img-fluid maxWidth mx-auto" style="margin: 60px 10px 10px 10px;max-width: 1200px" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gy1.png">
      </div>
    </div>
    <div style="display: flex">
      <div style="margin-right: 15px">
        <img class="img-fluid maxWidth mx-auto" style="margin: 20px 10px 10px 10px;max-width: 1200px" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gy3.png">
      </div>
      <div style="margin-left: 15px">
        <img class="img-fluid maxWidth mx-auto" style="margin: 20px 10px 10px 10px;max-width: 1200px" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/gy4.png">
      </div>
    </div>
  </div>

  <div class="d-flex flex-column p-t-5">
    <img class="img-fluid mx-auto" onclick="showAppointmentLayer('预约精装改造服务')" style="width: 100%;cursor: pointer" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/eg.png">
  </div>

  <div class="d-flex flex-column m-t-5">
    <img class="img-fluid mx-auto" onclick="showAppointmentService()" style="cursor: pointer" src="https://res.bestyoujia.com/web/ZMYJ/reform/pc/yy.png">
  </div>
</section>
{/block}
{block name="js"}
{load href="https://ujia-res.oss-cn-shenzhen.aliyuncs.com/common/third-party/swiper/5.0.3/dist/swiper.min.js" /}
<script>
    $('.navbar-nav').children('li').eq(3).addClass('nav-active');

    setTimeout(function () {
      const swiper = new Swiper('.swiper-container', {
        autoplay: {
          delay: 3000,
        },
        navigation: {
          nextEl: '.swiper-button-next',
          prevEl: '.swiper-button-prev',
        },
      });
      const swiper1 = new Swiper('.swiper-container1', {
        pagination: {
          el: '.swiper-pagination1',
          clickable: true
        },
        autoplay: {
          delay: 3500,
          stopOnLastSlide: false,
          disableOnInteraction: true,
        },
      });
    }, 10);

</script>
{/block}